This is the preliminary replication archive for the working paper "Statistical Analysis of Endorsement Experiments: Measuring Support for Militant Groups in Pakistan" by Will Bullock, Kosuke Imai and Jake Shapiro.

At this moment we have not released the Pakistani data used in this study, but the archive does include the R code used for both the empirical and simulation portions of our paper.  

The current files in the archive are:

readme.txt (this file)
Empirical Regressions.R
SimulationsDivisionN1000K5J4.R
SimulationsDivisionN1500K5J4.R
SimulationsDivisionN2000K5J4.R
SimulationsDivisionPakistan.R
SimulationsDivisionWithICovariatesN1000K5J4.R
SimulationsDivisionWithICovariatesN1500K5J4.R
SimulationsDivisionWithICovariatesN2000K5J4.R
SimulationsDivisionWithICovariatesPakistan.R
SimulationsIssueProvinceN1000K5J4.R
SimulationsIssueProvinceN1500K5J4.R
SimulationsIssueProvinceN2000K5J4.R
SimulationsIssueProvincePakistan.R
ModelDivision.txt
ModelDivisionWithICovariates.txt
ModelSimulationsDivision.txt
ModelSimulationsDivisionWithICovariates.txt
ModelSimulationsIssueProvince.txt

We will make available the data files pakistan.RData and divisions.RData upon acceptance to a peer-reviewed journal.

In addition to the basic installation of R, you will need to install the program JAGS (http://www-fis.iarc.fr/~martyn/software/jags/) and the R-library R2jags.

For those with experience using R, but no experience with JAGS, BUGS or WinBUGS, we suggest you obtain one or both of the following two books:

Data Analysis Using Regression and Multilevel/Hierarchical Modesl by Andrew Gelman and Jennifer Hill

Bayesian Analysis for the Social Sciences by Simon Jackman.


Please forward any question regarding this replication files to Will Bullock (wbullock@princeton.edu) at Princeton University.

Will Bullock
Kosuke Imai
Jake Shapiro





